package com.nearby.demand.ui;

import android.os.Bundle;

import com.auto.layout.lib.AutoLayoutActivity;
import com.bigkoo.pickerview.TimePickerView;
import com.nearby.demand.R;
import com.nearby.demand.ui.view.WorldRelease;
import com.nearby.demand.utils.KLog;

import java.util.Date;

import butterknife.ButterKnife;

/**
 * Created by Administrator on 2016/home_1/20.
 */
public class UiWorldRelease extends AutoLayoutActivity implements WorldRelease {



    TimePickerView pickerView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ui_world_release);
        ButterKnife.bind(this);
        pickerView = new TimePickerView(this, TimePickerView.Type.YEAR_MONTH_DAY);
        pickerView.setTime(new Date());
        pickerView.setCyclic(false);
        pickerView.setCancelable(true);
        //时间选择后回调
        pickerView.setOnTimeSelectListener(new TimePickerView.OnTimeSelectListener() {

            @Override
            public void onTimeSelect(Date date) {
                KLog.i("-" + date);
            }
        });
    }


}
